#初始
from alipay import AliPay
from . import settings
alipay = AliPay(
    appid="2021000116678162",
    app_notify_url='http://127.0.0.1:8000/home/',  # 默认回调url
    app_private_key_string=settings.APP_PRIVATE_KEY_STRING, #应用私钥
    # alipay public key, do not use your own public key!
    alipay_public_key_string=settings.ALIPAY_PUBLIC_KEY_STRING,  #支付宝公钥
    sign_type="RSA2", # RSA or RSA2
    debug=True  # False by default #false:调试模式
)

gateway =settings.GATEWAY